package com.byref.liteflowdemo.cmp.switchdemo;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeSwitchComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author BYREF
 */
@Component("a")
@Slf4j
public class ACmp extends NodeSwitchComponent {
    @Override
    public String processSwitch() throws Exception {
        Object requestData = this.getRequestData();
        log.info("开始执行ACmp[requestData: {}]", requestData);
        return requestData.toString();
    }
}
